<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="/tld/dictionary" prefix="dictionary"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link rel="stylesheet" href="${ctx}/static/css/style.css" type="text/css" /> 
<link rel="stylesheet" href="${ctx}/static/css/style2.css" type="text/css" /> 
<link rel="stylesheet" href="${ctx}/static/css/kongjian.css" type="text/css" /> 

<link rel="stylesheet" href="${ctx}/static/css/jquery.ui.all.css">
	<script src="${ctx}/static/script/jquery-1.4.min.js"></script>
	<script src="${ctx}/static/script/jquery.ui.core.js"></script>
	<script src="${ctx}/static/script/jquery.ui.datepicker.js"></script>
	<title>帐号管理</title>
</head>

<body>
<div class="er_banner">银行卡信息</div>
	<form:form id="inputForm" modelAttribute="bankInfo" action="${ctx}/crm/customerInfo/bankInfo/save" method="post">
		<form:input type="hidden" path="customerInfo.id"/>
		<form:input type="hidden" path="id"/>
		<div class="shenqing2">
		<c:if test="${bankInfo.id==null}">
			
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr><th bgcolor="#F6F6F6" height="1" colspan="10"style="border-top:#999999 solid 1px;">&nbsp;</th></tr>
          <tr>
            <td width="85" class="tdright">卡户姓名</td>
            <td width="150px" style="color:#2E74D1;" >
            	<form:input path="customerInfo.cnName"  disabled="true"/>
            	<form:input  type="hidden" path="customerInfo.cnName"/>
            </td>
            <td width="85"  class="tdright">*开户银行</td>
            <td width="350px" style="color:#2E74D1;">
            	<SELECT id=u83 class="u83" name="bankName" >
					<dictionary:options type="0008" selectedValue="${bankInfo.bankName}"/>
				</SELECT>
				<form:errors path="bankName" cssClass="bind-error"/>
				<form:input path="subbranch" maxLength="50"/>
				<form:errors path="subbranch" cssClass="bind-error"/>
            </td>
          </tr>
		    <tr>
            <td width="85" class="tdright">*帐号</td>
            <td width="150px" style="color:#2E74D1;" ><form:input path="accNo" maxLength="19"/><form:errors path="accNo" cssClass="bind-error"/>
            </td>
			<td width="85"class="tdright">*状态</td>
            <td width="250px" style="color:#2E74D1;"><form:radiobutton path="status" value="1" />启用
				<form:radiobutton path="status" value="9" />禁用
				<form:errors path="status" cssClass="bind-error"/>
            </td>
          </tr>
      </table>
      </c:if>
      
      <c:if test="${bankInfo.id!=null}">
			
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr><th bgcolor="#F6F6F6" height="1" colspan="10"style="border-top:#999999 solid 1px;">&nbsp;</th></tr>
          <tr>
            <td width="85" class="tdright">卡户姓名</td>
            <td width="150px" style="color:#2E74D1;" >
            	<form:input path="customerInfo.cnName"  disabled="true"/>
            	<form:input  type="hidden" path="customerInfo.cnName"/>
            </td>
            <td width="85"  class="tdright">*开户银行</td>
            <td width="350px" style="color:#2E74D1;">
            	<form:input  type="hidden" path="bankName"/>
            	<SELECT id=u83 class="u83" name="bankName" disabled="disabled">
					<dictionary:options type="0008" selectedValue="${bankInfo.bankName}"/>
				</SELECT>
				<form:errors path="bankName" cssClass="bind-error"/>
				<form:input type="hidden" path="subbranch" maxLength="50"/>
				<form:input path="subbranch" maxLength="50" disabled="true"/>
				<form:errors path="subbranch" cssClass="bind-error"/>
            </td>
          </tr>
		    <tr>
            <td width="85" class="tdright">*帐号</td>
            <td width="150px" style="color:#2E74D1;" >
            	<form:input  type="hidden" path="accNo"/>
            	<form:input path="accNo" maxLength="19" disabled="true"/><form:errors path="accNo" cssClass="bind-error"/>
            </td>
			<td width="85"class="tdright">*状态</td>
            <td width="250px" style="color:#2E74D1;"><form:radiobutton path="status" value="1" />启用
				<form:radiobutton path="status" value="9" />禁用
				<form:errors path="status" cssClass="bind-error"/>
            </td>
          </tr>
      </table>
      </c:if>		
    </div>
<c:if test="${not empty error}">
	<div style="color:red">
			${error}
	</div>
</c:if>
    <div class="yiban" style="text-align:left;">
    <input class="tijiao_big" type="submit" value="提交"/>&nbsp;<input name="" type="" class="quxiao_big" value="&nbsp;&nbsp;取消" onclick="window.location=('${ctx}/crm/customer/${bankInfo.customerInfo.id}/bankInfo');"/>
	</form:form>
</body>
</html>
